<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>收货地址 - Powered By ${systemConfig.systemName}</title>  <link rel="icon" href="/template/pc1/images/wmh_favicon.ico" type="image/x-icon" />
    <meta name="Author" content="E-SHOP Team" />
    <meta name="Copyright" content="E-SHOP" />
    <link rel="icon" href="/template/pc1/images/wmh_favicon.ico" type="image/x-icon" />
    <% include("include.html"){}%>
    <link href="${base}/template/pc1/css/login.css" rel="stylesheet" type="text/css" />
    <link href="${base}/template/pc1/css/register.css" rel="stylesheet" type="text/css" />
    <link href="${base}/template/pc1/css/member_center.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="${base}/template/pc1/js/login.js"></script>
    <script type="text/javascript" src="${base}/template/pc1/js/register.js"></script>
    <script type="text/javascript">
        $().ready( function() {

            // 删除
            $(".deleteReceiver").click( function() {
                if (confirm("您确定要删除吗？") == false) {
                    return false;
                }
            });

        });
    </script>
</head>
<body class="memberCenter">
<%include("header_index_sys.html"){}%>
<div class="body receiverList">
    <div class="bodyLeft">
        <div class="memberInfo">
            <div class="top"></div>
            <div class="middle">
                <p>欢迎您！<span class="username">${loginMember.username}</span> [<a class="userLogout" href="${base}/b/customerCenter/logout">退出</a>]</p>
                <p>会员等级:<span class="red"> ${loginMember.memberRank.name!}</span></p>
            </div>
            <div class="bottom"></div>
        </div>
        <div class="blank"></div>
        <!-- 侧边栏 -->
        <%include("sidebar_customer.html"){}%>
    </div>
    <div class="bodyRight">
        <div class="memberCenterDetail">
            <div class="top">
                收货地址
            </div>
            <div class="middle">
                <div class="blank"></div>
                <a class="addButton" href="${base}/b/pc/receiver/add" hidefocus="true">+添加收货地址</a>
                <div class="blank"></div>
                <table class="listTable">
                    <tr>
                        <th>收货人</th>
                        <th>地址</th>
                        <th>电话</th>
                        <th>手机</th>
                        <th>邮编</th>
                        <th>默认</th>
                        <th>操作</th>
                    </tr>
                    <%for(list in receiver){%>
                    <tr>
                        <td>
						${list.name}
                        </td>
                        <td>
						${list.address}
                        </td>
                        <td>
						${list.phone}
                        </td>
                        <td>
						${list.mobile}
                        </td>
                        <td>
						${list.zipCode}
                        </td>
                        <td>
                            <%if (list.isDefault){%>是<%}else{%>否<%}%>
                        </td>
                        <td>
                            <a href="${base}/b/pc/receiver/edit?id=${list.id}">编辑</a>
                            <a href="${base}/b/pc/receiver/pcDelete/?id=${list.id}" class="deleteReceiver">删除</a>
                        </td>
                    </tr>
                    <%}%>
                </table>
                <div class="blank"></div>
            </div>
            <div class="bottom"></div>
        </div>
    </div>
    <div class="blank"></div>
</div>
<div class="blank"></div>
<%include("footer.html"){}%>
</body>
</html>